#ifndef __ADPM_MTOOLS_H__
#define __ADPM_MTOOLS_H__

#include <linux/slab.h>
#include <linux/in.h>
#include <linux/net.h>
#include <linux/syscalls.h>


struct MemcInfo{
  char ip[20];
  int port;
  struct sockaddr_in addr;
};

//get the memcinfo structure
void mt_create_info(struct MemcInfo * mi, const char *ip, int port);
//success return 0
int mt_set(struct MemcInfo *mi, const char *key, const char *value, int len);
//success return 0, no found return 1
int mt_get(struct MemcInfo *mi, const char *key, char *value, int len);

#endif